
/**
 * This file is part of the Phalcon Framework.
 *
 * (c) Phalcon Team <team@phalconphp.com>
 *
 * For the full copyright and license information, please view the LICENSE.txt
 * file that was distributed with this source code.
 */

namespace Phalcon\Mvc\Model\MetaData;

use Phalcon\Mvc\Model\MetaData;
use Phalcon\Mvc\Model\Exception;

/**
 * Phalcon\Mvc\Model\MetaData\Memory
 *
 * Stores model meta-data in memory. Data will be erased when the request finishes
 *
 */
class Memory extends MetaData
{

	protected _metaData = [];

	/**
	 * Phalcon\Mvc\Model\MetaData\Memory constructor
	 *
	 * @param array options
	 */
	public function __construct(var options = null)
	{
	}

	/**
	 * Reads the meta-data from temporal memory
	 */
	public function read(string! key) -> array | null
	{
		return null;
	}

	/**
	 * Writes the meta-data to temporal memory
	 */
	public function write(string! key, array data) -> void
	{
		return;
	}
}
